package com.firebroo.PullObserver;

public class ConcreteSubject extends Subject {
    private String state;
    public String getState() {
        return state;
    }
    public void setState(String state) {
        this.state = state;
    }
    public void change(String newState){
        state = newState;
        System.out.println("主题状态为:" + state);

		/*调用父类方法通知所有观察者*/
        notifyObservers();
    }
}
